package cn.eaay.controller;

import cn.eaay.entity.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * HelloApi 测试接口
 */
@Api(tags = "Hello Api 服务测试")
public interface HelloApi {

    @ApiOperation("综合参数测试方法")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "学员ID", required = true, dataType = "String", paramType = "path"),
            @ApiImplicitParam(name = "name", value = "学员名称", required = true, dataType = "String", paramType = "query")
    })
    Student modifyStudentBynNum(@PathVariable("id") String id, @RequestParam("name") String name, @RequestBody Student student);
}
